if (global.grav == -1) {
    player_flip();
}